import '@/assets/css/base.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'element-plus/theme-chalk/el-message.css'

import config from './config'

import App from './App.vue'
import router from './router'
const pinia = createPinia()

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
// app.config.errorHandler = (err) => {
//   console.warn(err)
// }
app.use(config)
app.use(pinia)
app.use(router)

app.mount('#app')
